<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script src="https://cdn.jsdelivr.net/npm/vue"></script>
</head>
<body>
<div id="app-2">
  <span v-bind:title="message">
    鼠标悬停几秒钟查看此处动态绑定的提示信息！
  </span>
    <div v-bind:title="name">dfsljkf</div>
</div>
</body>
</html>
<script>
    var app2 = new Vue({
        el: '#app-2',
        data: {
            message: 'sfsfsd ' + new Date().toLocaleString(),
            name:'sunwu'
        }
    })

    /**
     * 运行流程
     * 1. 绑定元素id
     * 2. new Vue
     * 3. el绑定app
     * 4. data赋值
     */
</script>